package self;

public class SecInner1 {
    int a = 1;
    private int b = 2;
    private static int d = 3;

    void cry(){
        System.out.println("SecInner1.cry");
    }

    private void smile(){
        System.out.println("SecInner1.smile");
    }

    private static void laugh(){
        System.out.println("SecInner1.laugh");
    }

    class Inner1{
        int a = 1;
        int c = SecInner1.this.b;
        void show(){
            System.out.println("Inner1.show");
        }


    }
    static class Inner2{
        int a = 1;
        int c = SecInner1.d;                   //---------------静态中不用加this
        static int m = 1;
        static void run(){
            System.out.println("SecInner1.Inner2.run");
        }
        void lie(){                          //----------------静态内部类中不能访问外部类的非静态方法，但是可以自己有非静态方法
            System.out.println("SecInner1.Inner2.lie");
        }
    }
}
